package com.ljy.my_study.tomcat原理.server;
/** 
 * 测试类，被主容器动态调用 
* @author James
* @date 2018年6月5日 
*/
public class ExClass {
	/**  
     * 测试方法  
     */  
    public String test(){  
        System.out.println("ExClass.test()方法被调用");  
        return "ExClass.test()方法被调用";
    } 
    
    public static void main(String[] args) {
		String test="GET /a/b?path=1&attrs=2 HTTP/1.1\r\n" + 
				"Host: localhost\r\n" + 
				"Connection: keep-alive\r\n" + 
				"Cache-Control: no-cache\r\n" + 
				"x-app-version: 1.0.0\r\n" + 
				"User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36\r\n" + 
				"Postman-Token: ea17e305-2118-53ad-3f66-7d30eb90347c\r\n" + 
				"Accept: */*\r\n" + 
				"Accept-Encoding: gzip, deflate, br\r\n" + 
				"Accept-Language: zh-CN,zh;q=0.9";
		System.out.println(test.length());
	}
}
